package com.huabo.contract.mysql.entity;

import java.math.BigDecimal;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;

/**
 * <p>
 * 
 * </p>
 *
 * @author huabo
 * @since 2022-03-22
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @TableName("TBL_LEGAL_CLOSEINFORMATION")
@ApiModel(value="TblLegalCloseinformation对象", description="")
public class TblLegalCloseinformationMySql implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId("CLOSEID")
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "select HIBERNATE_SEQUENCE.nextval from dual")
      private Integer closeid;

    @TableField("CLOSEDATE")
    @JSONField(format = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date closedate;//结项日期

    @TableField("JUDGEMENTAMOUNT")
    private BigDecimal judgementamount;//判决金额

    @TableField("CLOSERESULT")//处理结果
    private String closeresult;

    @TableField("MANAGERECOMMOND")
    private String managerecommond;//管理建议

    @TableField("DISPUTINFO")
    private BigDecimal disputinfo;

    @TableField("CREATESTAFF")
    private BigDecimal createstaff;

    @TableField("CREATETIME")
    @JSONField(format = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date createtime;

    @TableField("LINKORG")
    private BigDecimal linkorg;

    @ApiModelProperty(value = "对应TblStaff中REALNAME，真实名字")
    @Transient
    private String realname;

//    @ApiModelProperty(value = "对应TblLegalDisputregistration中DISPUTEITEM")
//    @Transient
//    private String diputeItem;

    @Transient
    private BigDecimal minmoney;
    @Transient
    private BigDecimal maxmoney;

    @Transient
    private TblLegalDisputregistrationMySql dispute;


    //映射TblStaff与TblLegalDisputregistration
    @Transient
    private BigDecimal staffid;//主键ID,自动增长
    @Transient
    private String fixedphone;//固定电话
    @Transient
    private String address;//地址
    @Transient
    private String email;//邮箱
    @Transient
    private String miblephone;//手机号码
    @Transient
    private String memo;//备注
    @Transient
    private String username;//用户名（登录名）
    @Transient
    private String password;//密码
    @Transient
    private BigDecimal jobid;//岗位ID
    @Transient
    @JSONField(format = "yyyy-MM-dd")
    private Date createDate;
    @Transient
    private Integer status;//状态（1启用，0弃用）
    @Transient
    private BigDecimal orgid;//组织Id
    @Transient
    private Integer outSideId; //标识用户来源 为null是本系统，1：蜂信，2,蜂信购买后的用户   3：华博云系统注册用户管理员  以后可能为2,3...来表示其它来源
    @Transient
    private String outSideOpenId; //外部同步企业来源Id


    @Transient
    private Integer disputeid;

    @Transient
    private String disputeno;

    @Transient
    private BigDecimal disputestatus;

    @Transient
    private String disputetype;

    @Transient
    private BigDecimal contractinfo;

    @Transient
    private String disputecours;

    @Transient
    private BigDecimal isuegent;

    @Transient
    private BigDecimal whethersued;

    @Transient
    private BigDecimal disputeundertaker;

    @Transient
    private LocalDateTime lastdealdate;

    @Transient
    private String solutionsuggestions;

    @Transient
    private String plaintiff;

    @Transient
    private String defendant;

    @Transient
    private String attorney;

    @Transient
    private String attorneyphont;

    @Transient
    private BigDecimal dispuinfo;

    @Transient
    private String disputeitem;//纠纷主题

    @Transient
    private BigDecimal isattorney;

    @ApiModelProperty(value = "贵安配合人员")
    @Transient
    private String coordination;

    @ApiModelProperty(value = "贵安纠纷登记-案由")
    @Transient
    private String casecause;

    @ApiModelProperty(value = "贵安纠纷登记-涉诉项目")
    @Transient
    private String ssproject;

    @ApiModelProperty(value = "贵安纠纷登记-管辖法院（仲裁机构）")
    @Transient
    private String courtfirst;

    @ApiModelProperty(value = "贵安纠纷登记-诉讼金额")
    @Transient
    private BigDecimal litigationamount;

    @ApiModelProperty(value = "贵安纠纷登记-发生时间")
    @Transient
    private LocalDateTime occurrencetime;

    @ApiModelProperty(value = "贵安纠纷登记-涉及子公司")
    @Transient
    private String subsidiaries;
}
